package cn.yangliu.nacos.management.constant;

import cn.yangliu.nacos.comm.constant.GlobalValidateConstants;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-05
 */
public interface ManagementValidateConstants extends GlobalValidateConstants {

    /**
     * current class instance's member.
     * The constant AUTHORITY_NAME_MISS.
     */
    String AUTHORITY_NAME_MISS = "name is required";
    /**
     * current class instance's member.
     * The constant AUTHORITY_SORTNO_MISS.
     */
    String AUTHORITY_SORTNO_MISS = "sort number is required";
    /**
     * current class instance's member.
     * The constant AUTHORITY_BUTTON_MISS.
     */
    String AUTHORITY_BUTTON_MISS = "button is required";

    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_ACCESSTOKENVALIDITYSECONDS_MISS.
     */
    String OAUTH2CLIENT_ACCESSTOKENVALIDITYSECONDS_MISS = "access token validity seconds is required";
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_ACCESSTOKENVALIDITYSECONDS_ILLEGAL.
     */
    String OAUTH2CLIENT_ACCESSTOKENVALIDITYSECONDS_ILLEGAL = "access token validity seconds is between 1 and " + (60 * 60 * 24 * 90);
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_GRANTTYPES_MISS.
     */
    String OAUTH2CLIENT_GRANTTYPES_MISS = "grantTypes is required";
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_NAME_MISS.
     */
    String OAUTH2CLIENT_NAME_MISS = "name is required";
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_REFRESHTOKENVALIDITYSECONDS_ILLEGAL.
     */
    String OAUTH2CLIENT_REFRESHTOKENVALIDITYSECONDS_ILLEGAL = "refresh token validity seconds is between 1 and " + (60 * 60 * 24 * 90);
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_REFRESHTOKENVALIDITYSECONDS_MISS.
     */
    String OAUTH2CLIENT_REFRESHTOKENVALIDITYSECONDS_MISS = "refresh token validity seconds is required";
    /**
     * current class instance's member.
     * The constant OAUTH2CLIENT_SCOPES_MISS.
     */
    String OAUTH2CLIENT_SCOPES_MISS = "scopes is required";

    /**
     * current class instance's member.
     * The constant ROLE_NAME_MISS.
     */
    String ROLE_NAME_MISS = "role name is required";
}
